import React from "react"

import { Redirect } from "react-router-dom";

export default class Router04 extends React.Component {
    constructor() {
        super();
        this.state = {
            isLogin: false
        }
    }
    render() {
        return (
            this.state.isLogin ? <p>登陆了</p> : <Redirect to="/router" />
        )
    }

}